package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.MaintenanceBean;
import com.molichuxing.services.infrastructure.bean.WarnConfigBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 表 Mapper 接口
 * </p>
 *
 * @author zhaopenghui
 * @since 2020-07-20
 */
public interface WarnConfigMapper extends RootMapper<WarnConfigBean> {

    int modifyById(WarnConfigBean warnConfigBean);

    int modifyByType(WarnConfigBean warnConfigBean);
    /**
     * 通过类型查找
     *
     * @param type
     * @return
     */
    WarnConfigBean getByType(@Param("type") Integer type);

    /**
     * 获取列表
     * @return
     */
    List<WarnConfigBean> getList();

}